package game.objects.staticObjects;

import engine.game.Manager;
import engine.graphics.Color4f;
import engine.graphics.TextureManager;
import engine.objects.TexturedObject;
import engine.system.ID;

public class PalmTree extends LevelObject {

	private static final long serialVersionUID = 1L;

	public PalmTree(Manager m, int x, int y, int w, int h) {
		super(m, x, y, w, h, false, true);
		init(); 
	}
	
	public void init(){
		this.changeColor(new Color4f(1,1,1,0.75f)); 
		TexturedObject.addNewAnimationToObject(this, "palmAnimation", "palm", 315, 512, 
				new ID[]{new ID(0,0), new ID(1,0)},
						500);
	}

	public void render(){
		TextureManager.bindTexture("palm"); 
		super.render(); 
	}
	
}
